home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / dark_brown_eyes.swf / scripts / __Packages / mx / controls / ProgressBar.as next >
Text File  |  2007-09-26  |  20KB  |  634 lines

  1. class mx.controls.ProgressBar extends mx.core.UIObject
  2. {
  3.    static var symbolName = "ProgressBar";
  4.    static var symbolOwner = Object(mx.controls.ProgressBar);
  5.    var className = "ProgressBar";
  6.    static var version = "2.0.0.360";
  7.    var __mode = "event";
  8.    var __direction = "right";
  9.    var __labelPlacement = "bottom";
  10.    var __label = "LOADING %3%% ";
  11.    var __conversion = 1;
  12.    var __maximum = 0;
  13.    var __minimum = 0;
  14.    var __value = 0;
  15.    var __indeterminate = false;
  16.    var progTrackLeftName = "ProgTrackLeft";
  17.    var progTrackMiddleName = "ProgTrackMiddle";
  18.    var progTrackRightName = "ProgTrackRight";
  19.    var progBarLeftName = "ProgBarLeft";
  20.    var progBarMiddleName = "ProgBarMiddle";
  21.    var progBarRightName = "ProgBarRight";
  22.    var progIndBarName = "ProgIndBar";
  23.    var idNames = new Array("progTrackLeft_mc","progTrackMiddle_mc","progTrackRight_mc","progBarLeft_mc","progBarMiddle_mc","progBarRight_mc","progIndBar_mc");
  24.    var skinIDProgTrackLeft = 0;
  25.    var skinIDProgTrackMiddle = 1;
  26.    var skinIDProgTrackRight = 2;
  27.    var skinIDProgBarLeft = 3;
  28.    var skinIDProgBarMiddle = 4;
  29.    var skinIDProgBarRight = 5;
  30.    var skinIDProgIndBar = 6;
  31.    var skinIDMask = 100;
  32.    var skinIDLabel = 200;
  33.    var __interval = 30;
  34.    var __leave = 2;
  35.    var clipParameters = {mode:1,source:1,direction:1,label:1,labelPlacement:1,conversion:1};
  36.    static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ProgressBar.prototype.clipParameters,mx.core.UIObject.prototype.clipParameters);
  37.    function ProgressBar()
  38.    {
  39.       super();
  40.    }
  41.    function init(Void)
  42.    {
  43.       super.init();
  44.       this.tabEnabled = false;
  45.       this.boundingBox_mc._visible = false;
  46.       this.boundingBox_mc._width = this.boundingBox_mc._height = 0;
  47.    }
  48.    function createChildren(Void)
  49.    {
  50.       if(this.progTrackLeft_mc == undefined)
  51.       {
  52.          this.setSkin(this.skinIDProgTrackLeft,this.progTrackLeftName);
  53.       }
  54.       if(this.progTrackMiddle_mc == undefined)
  55.       {
  56.          this.setSkin(this.skinIDProgTrackMiddle,this.progTrackMiddleName);
  57.       }
  58.       if(this.progTrackRight_mc == undefined)
  59.       {
  60.          this.setSkin(this.skinIDProgTrackRight,this.progTrackRightName);
  61.       }
  62.       if(this.progBarLeft_mc == undefined)
  63.       {
  64.          this.setSkin(this.skinIDProgBarLeft,this.progBarLeftName);
  65.       }
  66.       if(this.progBarMiddle_mc == undefined)
  67.       {
  68.          this.setSkin(this.skinIDProgBarMiddle,this.progBarMiddleName);
  69.       }
  70.       if(this.progBarRight_mc == undefined)
  71.       {
  72.          this.setSkin(this.skinIDProgBarRight,this.progBarRightName);
  73.       }
  74.       if(this.progIndBar_mc == undefined)
  75.       {
  76.          this.setSkin(this.skinIDProgIndBar,this.progIndBarName);
  77.          this.progIndBar_mc._visible = false;
  78.       }
  79.       if(this.mask_mc == undefined)
  80.       {
  81.          this.mask_mc = this.createObject("BoundingBox","mask_mc",this.skinIDMask);
  82.          this.mask_mc._visible = false;
  83.          this.progIndBar_mc.setMask(this.mask_mc);
  84.       }
  85.       if(this.labelPath == undefined)
  86.       {
  87.          this.labelPath = this.createLabel("labelPath",this.skinIDLabel);
  88.          this.labelPath.tabEnabled = false;
  89.          this.labelPath.selectable = false;
  90.          this.labelPath.styleName = this;
  91.       }
  92.       this.setSize(this.__width,this.__height);
  93.    }
  94.    function size(Void)
  95.    {
  96.       this.invalidate();
  97.    }
  98.    function draw(Void)
  99.    {
  100.       if(this.__source == undefined && this.__stringSource != undefined)
  101.       {
  102.          this.setSource(this.__stringSource);
  103.          this.__stringSource = undefined;
  104.       }
  105.       var _loc14_ = this.__width;
  106.       var _loc22_ = this.__height;
  107.       var _loc5_ = this.progBarLeft_mc._width <= this.progTrackLeft_mc._width ? this.progTrackLeft_mc._width : this.progBarLeft_mc._width;
  108.       var _loc6_ = this.progBarLeft_mc._height <= this.progTrackLeft_mc._height ? this.progTrackLeft_mc._height : this.progBarLeft_mc._height;
  109.       var _loc15_ = this.progBarRight_mc._width <= this.progTrackRight_mc._width ? this.progTrackRight_mc._width : this.progBarRight_mc._width;
  110.       var _loc7_ = _loc14_;
  111.       var _loc8_ = 0;
  112.       var _loc9_ = 0;
  113.       if(this.__labelPlacement == "top")
  114.       {
  115.          _loc8_ = _loc22_ - _loc6_;
  116.       }
  117.       if(this.__label != undefined && this.__label != "")
  118.       {
  119.          this.labelPath._visible = false;
  120.          var _loc11_ = 1;
  121.          var _loc20_ = 1;
  122.          var _loc18_ = 5;
  123.          var _loc26_ = 4;
  124.          var _loc12_ = this.__value - this.__minimum;
  125.          if(_loc12_ < 0)
  126.          {
  127.             _loc12_ = 0;
  128.          }
  129.          var _loc13_ = this.__maximum - this.__minimum;
  130.          if(_loc13_ < 0)
  131.          {
  132.             _loc13_ = 0;
  133.          }
  134.          if(this.__labelPlacement == "left" || this.__labelPlacement == "right")
  135.          {
  136.             var _loc4_ = this.__label;
  137.             if(!this.__indeterminate)
  138.             {
  139.                _loc4_ = this.replace(_loc4_,"%1",String(Math.floor(_loc13_ / this.__conversion)));
  140.                _loc4_ = this.replace(_loc4_,"%2",String(Math.floor(_loc13_ / this.__conversion)));
  141.                _loc4_ = this.replace(_loc4_,"%3",String(100));
  142.                _loc4_ = this.replace(_loc4_,"%%","%");
  143.             }
  144.             else
  145.             {
  146.                _loc4_ = this.replace(_loc4_,"%1",String(Math.floor(_loc12_ / this.__conversion)));
  147.                _loc4_ = this.replace(_loc4_,"%2","??");
  148.                _loc4_ = this.replace(_loc4_,"%3","");
  149.                _loc4_ = this.replace(_loc4_,"%%","");
  150.             }
  151.             this.labelPath.text = _loc4_;
  152.             _loc7_ = _loc14_ - (this.labelPath.textWidth + _loc18_ + _loc11_);
  153.             if(_loc7_ < _loc5_ + _loc15_)
  154.             {
  155.                _loc7_ = 0;
  156.             }
  157.             if(this.__labelPlacement == "left")
  158.             {
  159.                _loc9_ = _loc14_ - _loc7_;
  160.             }
  161.          }
  162.          var _loc3_ = this.__label;
  163.          if(!this.__indeterminate)
  164.          {
  165.             _loc3_ = this.replace(_loc3_,"%1",String(Math.floor(_loc12_ / this.__conversion)));
  166.             _loc3_ = this.replace(_loc3_,"%2",String(Math.floor(_loc13_ / this.__conversion)));
  167.             _loc3_ = this.replace(_loc3_,"%3",String(Math.floor(this.__get__percentComplete())));
  168.             _loc3_ = this.replace(_loc3_,"%%","%");
  169.          }
  170.          else
  171.          {
  172.             _loc3_ = this.replace(_loc3_,"%1",String(Math.floor(_loc12_ / this.__conversion)));
  173.             _loc3_ = this.replace(_loc3_,"%2","??");
  174.             _loc3_ = this.replace(_loc3_,"%3","");
  175.             _loc3_ = this.replace(_loc3_,"%%","");
  176.          }
  177.          this.labelPath.text = _loc3_;
  178.          var _loc10_ = 0;
  179.          if(this.__labelPlacement == "left" || this.__labelPlacement == "right")
  180.          {
  181.             _loc10_ = _loc14_ - _loc7_ - _loc11_;
  182.          }
  183.          else
  184.          {
  185.             _loc10_ = _loc14_ - _loc11_;
  186.          }
  187.          if(_loc10_ < this.labelPath.textWidth + _loc18_)
  188.          {
  189.             this.labelPath._width = _loc10_;
  190.          }
  191.          else
  192.          {
  193.             this.labelPath._width = this.labelPath.textWidth + _loc18_;
  194.          }
  195.          if(this.__labelPlacement == "left" || this.__labelPlacement == "right" || this.__labelPlacement == "center")
  196.          {
  197.             _loc10_ = _loc22_;
  198.          }
  199.          else
  200.          {
  201.             _loc10_ = _loc22_ - _loc20_ - _loc6_;
  202.          }
  203.          if(_loc10_ < this.labelPath.textHeight + _loc26_)
  204.          {
  205.             this.labelPath._height = _loc10_;
  206.          }
  207.          else
  208.          {
  209.             this.labelPath._height = this.labelPath.textHeight + _loc26_;
  210.          }
  211.          if(this.__labelPlacement == "left")
  212.          {
  213.             this.labelPath._x = _loc11_;
  214.          }
  215.          else if(this.__labelPlacement == "right")
  216.          {
  217.             this.labelPath._x = _loc7_ + _loc11_;
  218.          }
  219.          else
  220.          {
  221.             this.labelPath._x = _loc11_;
  222.          }
  223.          if(this.__labelPlacement == "center" || this.__labelPlacement == "left" || this.__labelPlacement == "right")
  224.          {
  225.             this.labelPath._y = _loc6_ / 2 - this.labelPath.height / 2;
  226.          }
  227.          else if(this.__labelPlacement == "top")
  228.          {
  229.             this.labelPath._y = _loc8_ - _loc20_ - this.labelPath.height;
  230.          }
  231.          else
  232.          {
  233.             this.labelPath._y = _loc6_ + _loc20_;
  234.          }
  235.          this.labelPath._visible = true;
  236.       }
  237.       else
  238.       {
  239.          this.labelPath.text = "";
  240.          this.labelPath._visible = false;
  241.       }
  242.       if(_loc7_ >= _loc5_ + _loc15_)
  243.       {
  244.          var _loc2_ = this.progTrackLeft_mc.getBounds(this.progTrackLeft_mc);
  245.          var _loc42_ = - _loc2_.xMin;
  246.          var _loc41_ = - _loc2_.yMin;
  247.          this.progTrackLeft_mc.move(_loc9_ + _loc5_ - this.progTrackLeft_mc._width + _loc42_,_loc8_ + (_loc6_ - this.progTrackLeft_mc._height) / 2 + _loc41_);
  248.          _loc2_ = this.progTrackMiddle_mc.getBounds(this.progTrackMiddle_mc);
  249.          var _loc38_ = - _loc2_.xMin;
  250.          var _loc35_ = - _loc2_.yMin;
  251.          this.progTrackMiddle_mc.setSize(_loc7_ - _loc5_ - _loc15_,this.progTrackMiddle_mc._height);
  252.          this.progTrackMiddle_mc.move(_loc9_ + _loc5_ + _loc38_,_loc8_ + (_loc6_ - this.progTrackLeft_mc._height) / 2 + _loc35_);
  253.          _loc2_ = this.progTrackRight_mc.getBounds(this.progTrackRight_mc);
  254.          var _loc31_ = - _loc2_.xMin;
  255.          var _loc32_ = - _loc2_.yMin;
  256.          this.progTrackRight_mc.move(_loc9_ + _loc5_ + this.progTrackMiddle_mc._width + _loc31_,_loc8_ + (_loc6_ - this.progTrackRight_mc._height) / 2 + _loc32_);
  257.          var _loc21_ = _loc7_ - _loc5_ - _loc15_;
  258.          var _loc16_ = _loc21_ * this.__get__percentComplete() / 100;
  259.          var _loc17_ = 0;
  260.          if(this.__indeterminate == true)
  261.          {
  262.             _loc16_ = _loc21_;
  263.             this.mask_mc._width = _loc16_;
  264.             this.mask_mc._height = this.progIndBar_mc._height;
  265.             this.mask_mc._x = _loc9_ + _loc5_;
  266.             this.mask_mc._y = _loc8_ + (_loc6_ - this.progIndBar_mc._height) / 2;
  267.             this.progIndBar_mc._width = _loc7_ * 200 / 150;
  268.             var _loc28_ = this.progIndBar_mc._x;
  269.             _loc2_ = this.progIndBar_mc.getBounds(this.progIndBar_mc);
  270.             var _loc30_ = - _loc2_.xMin;
  271.             var _loc29_ = - _loc2_.yMin;
  272.             var _loc19_ = _loc9_ + _loc5_ + _loc30_;
  273.             var _loc23_ = this.progIndBar_mc._width * 50 / 200;
  274.             var _loc25_ = this.progIndBar_mc._width * 20 / 200;
  275.             var _loc24_ = 3;
  276.             var _loc27_ = _loc23_;
  277.             if(this.__direction == "left")
  278.             {
  279.                _loc23_ = this.progIndBar_mc._width * 30 / 200;
  280.                _loc25_ = 0;
  281.                _loc24_ = -3;
  282.                _loc27_ = _loc25_;
  283.             }
  284.             if(_loc28_ <= _loc19_ - _loc23_ || _loc28_ >= _loc19_ - _loc25_)
  285.             {
  286.                this.progIndBar_mc._x = _loc19_ - _loc27_ + _loc24_;
  287.             }
  288.             else
  289.             {
  290.                this.progIndBar_mc._x += _loc24_;
  291.             }
  292.             this.progIndBar_mc._y = _loc8_ + (_loc6_ - this.progIndBar_mc._height) / 2 + _loc29_;
  293.             this.progIndBar_mc._visible = true;
  294.             this.invalidate();
  295.          }
  296.          else
  297.          {
  298.             this.progIndBar_mc._visible = false;
  299.             if(this.__direction == "left")
  300.             {
  301.                _loc17_ = _loc21_ - _loc16_;
  302.             }
  303.          }
  304.          _loc2_ = this.progBarMiddle_mc.getBounds(this.progBarMiddle_mc);
  305.          var _loc40_ = - _loc2_.xMin;
  306.          var _loc39_ = - _loc2_.yMin;
  307.          this.progBarMiddle_mc.setSize(_loc16_,this.progBarMiddle_mc._height);
  308.          this.progBarMiddle_mc.move(_loc17_ + _loc9_ + _loc5_ + _loc40_,_loc8_ + (_loc6_ - this.progBarLeft_mc._height) / 2 + _loc39_);
  309.          _loc2_ = this.progBarLeft_mc.getBounds(this.progBarLeft_mc);
  310.          var _loc36_ = - _loc2_.xMin;
  311.          var _loc33_ = - _loc2_.yMin;
  312.          this.progBarLeft_mc.move(_loc17_ + _loc9_ + _loc5_ - this.progBarLeft_mc._width + _loc36_,_loc8_ + (_loc6_ - this.progBarLeft_mc._height) / 2 + _loc33_);
  313.          _loc2_ = this.progBarRight_mc.getBounds(this.progBarRight_mc);
  314.          var _loc34_ = - _loc2_.xMin;
  315.          var _loc37_ = - _loc2_.yMin;
  316.          this.progBarRight_mc.move(_loc17_ + _loc9_ + _loc5_ + this.progBarMiddle_mc._width + _loc34_,_loc8_ + (_loc6_ - this.progBarRight_mc._height) / 2 + _loc37_);
  317.          this.progTrackLeft_mc._visible = true;
  318.          this.progTrackMiddle_mc._visible = true;
  319.          this.progTrackRight_mc._visible = true;
  320.          this.progBarLeft_mc._visible = true;
  321.          this.progBarMiddle_mc._visible = true;
  322.          this.progBarRight_mc._visible = true;
  323.       }
  324.       else
  325.       {
  326.          this.progTrackLeft_mc._visible = false;
  327.          this.progTrackMiddle_mc._visible = false;
  328.          this.progTrackRight_mc._visible = false;
  329.          this.progBarLeft_mc._visible = false;
  330.          this.progBarMiddle_mc._visible = false;
  331.          this.progBarRight_mc._visible = false;
  332.       }
  333.    }
  334.    function replace(str, from, to)
  335.    {
  336.       var _loc1_ = str.split(from);
  337.       var _loc2_ = _loc1_.join(to);
  338.       return _loc2_;
  339.    }
  340.    function getMode(Void)
  341.    {
  342.       return this.__mode;
  343.    }
  344.    function setMode(val)
  345.    {
  346.       if(val == "polled" || val == "manual")
  347.       {
  348.          this.__mode = val;
  349.       }
  350.       else
  351.       {
  352.          delete this.__mode;
  353.       }
  354.       this.invalidate();
  355.    }
  356.    function getDirection(Void)
  357.    {
  358.       return this.__direction;
  359.    }
  360.    function setDirection(val)
  361.    {
  362.       if(val == "left")
  363.       {
  364.          this.__direction = val;
  365.       }
  366.       else
  367.       {
  368.          delete this.__direction;
  369.       }
  370.       this.invalidate();
  371.    }
  372.    function getLabelPlacement(Void)
  373.    {
  374.       return this.__labelPlacement;
  375.    }
  376.    function setLabelPlacement(val)
  377.    {
  378.       if(val == "top" || val == "center" || val == "left" || val == "right")
  379.       {
  380.          this.__labelPlacement = val;
  381.       }
  382.       else
  383.       {
  384.          delete this.__labelPlacement;
  385.       }
  386.       this.invalidate();
  387.    }
  388.    function getIndeterminate(Void)
  389.    {
  390.       return this.__indeterminate;
  391.    }
  392.    function setIndeterminate(val)
  393.    {
  394.       if(val == true)
  395.       {
  396.          this.__indeterminate = true;
  397.       }
  398.       else
  399.       {
  400.          delete this.__indeterminate;
  401.       }
  402.       this.invalidate();
  403.    }
  404.    function getLabel(Void)
  405.    {
  406.       return this.__label;
  407.    }
  408.    function setLabel(val)
  409.    {
  410.       this.__label = val;
  411.       this.invalidate();
  412.    }
  413.    function getConversion(Void)
  414.    {
  415.       return this.__conversion;
  416.    }
  417.    function setConversion(val)
  418.    {
  419.       if(!_global.isNaN(val) && Number(val) > 0)
  420.       {
  421.          this.__conversion = Number(val);
  422.          this.invalidate();
  423.       }
  424.    }
  425.    function getSource(Void)
  426.    {
  427.       return this.__source;
  428.    }
  429.    function setSource(val)
  430.    {
  431.       if(typeof val == "string")
  432.       {
  433.          this.__stringSource = val;
  434.          val = eval(val);
  435.       }
  436.       if(val != null && val != undefined && val != "")
  437.       {
  438.          this.__source = val;
  439.          if(this.__mode == "event")
  440.          {
  441.             if(this.__source.addEventListener)
  442.             {
  443.                this.__source.addEventListener("progress",this);
  444.                this.__source.addEventListener("complete",this);
  445.             }
  446.             else
  447.             {
  448.                this.__source = undefined;
  449.             }
  450.          }
  451.          if(this.__mode == "polled")
  452.          {
  453.             this.si = setInterval(this,"update",this.__interval);
  454.          }
  455.       }
  456.       else if(this.__source != null)
  457.       {
  458.          delete this.__source;
  459.          clearInterval(this.si);
  460.          delete this.si;
  461.       }
  462.    }
  463.    function update(Void)
  464.    {
  465.       var _loc2_ = this.__source;
  466.       var _loc3_ = _loc2_.getBytesLoaded();
  467.       var _loc4_ = _loc2_.getBytesTotal();
  468.       this._setProgress(_loc3_,_loc4_);
  469.       if(this.__get__percentComplete() >= 100 && this.__value > 0)
  470.       {
  471.          clearInterval(this.si);
  472.       }
  473.    }
  474.    function progress(pEvent)
  475.    {
  476.       var _loc2_ = pEvent.target;
  477.       var _loc3_ = _loc2_.bytesLoaded;
  478.       var _loc4_ = _loc2_.bytesTotal;
  479.       this._setProgress(_loc3_,_loc4_);
  480.    }
  481.    function complete(pEvent)
  482.    {
  483.    }
  484.    function _setProgress(completed, total)
  485.    {
  486.       if(!_global.isNaN(completed) && !_global.isNaN(total))
  487.       {
  488.          this.__value = Number(completed);
  489.          this.__maximum = Number(total);
  490.          if(this.__mode != "event")
  491.          {
  492.             this.dispatchEvent({type:"progress",current:completed,total:total});
  493.             if(this.__value == this.__maximum && this.__value > 0)
  494.             {
  495.                this.dispatchEvent({type:"complete",current:completed,total:total});
  496.             }
  497.          }
  498.          this.invalidate();
  499.       }
  500.    }
  501.    function setProgress(completed, total)
  502.    {
  503.       if(this.__mode == "manual")
  504.       {
  505.          this._setProgress(completed,total);
  506.       }
  507.    }
  508.    function getPercentComplete(Void)
  509.    {
  510.       if(this.__value < this.__minimum || this.__maximum < this.__minimum)
  511.       {
  512.          return 0;
  513.       }
  514.       var _loc3_ = 100 * (this.__value - this.__minimum) / (this.__maximum - this.__minimum);
  515.       if(_global.isNaN(_loc3_) || _loc3_ < 0)
  516.       {
  517.          return 0;
  518.       }
  519.       if(_loc3_ > 100)
  520.       {
  521.          return 100;
  522.       }
  523.       return _loc3_;
  524.    }
  525.    function getMaximum(Void)
  526.    {
  527.       return this.__maximum;
  528.    }
  529.    function setMaximum(val)
  530.    {
  531.       if(!_global.isNaN(val) && this.__mode == "manual")
  532.       {
  533.          this.__maximum = Number(val);
  534.          this.invalidate();
  535.       }
  536.    }
  537.    function getMinimum(Void)
  538.    {
  539.       return this.__minimum;
  540.    }
  541.    function setMinimum(val)
  542.    {
  543.       if(!_global.isNaN(val) && this.__mode == "manual")
  544.       {
  545.          this.__minimum = Number(val);
  546.          this.invalidate();
  547.       }
  548.    }
  549.    function getVal(Void)
  550.    {
  551.       return this.__value;
  552.    }
  553.    function get mode()
  554.    {
  555.       return this.getMode();
  556.    }
  557.    function set mode(x)
  558.    {
  559.       this.setMode(x);
  560.    }
  561.    function get source()
  562.    {
  563.       return this.getSource();
  564.    }
  565.    function set source(x)
  566.    {
  567.       this.setSource(x);
  568.    }
  569.    function get direction()
  570.    {
  571.       return this.getDirection();
  572.    }
  573.    function set direction(x)
  574.    {
  575.       this.setDirection(x);
  576.    }
  577.    function get label()
  578.    {
  579.       return this.getLabel();
  580.    }
  581.    function set label(x)
  582.    {
  583.       this.setLabel(x);
  584.    }
  585.    function get labelPlacement()
  586.    {
  587.       return this.getLabelPlacement();
  588.    }
  589.    function set labelPlacement(x)
  590.    {
  591.       this.setLabelPlacement(x);
  592.    }
  593.    function get indeterminate()
  594.    {
  595.       return this.getIndeterminate();
  596.    }
  597.    function set indeterminate(x)
  598.    {
  599.       this.setIndeterminate(x);
  600.    }
  601.    function get conversion()
  602.    {
  603.       return this.getConversion();
  604.    }
  605.    function set conversion(x)
  606.    {
  607.       this.setConversion(x);
  608.    }
  609.    function get percentComplete()
  610.    {
  611.       return this.getPercentComplete();
  612.    }
  613.    function get maximum()
  614.    {
  615.       return this.getMaximum();
  616.    }
  617.    function set maximum(x)
  618.    {
  619.       this.setMaximum(x);
  620.    }
  621.    function get minimum()
  622.    {
  623.       return this.getMinimum();
  624.    }
  625.    function set minimum(x)
  626.    {
  627.       this.setMinimum(x);
  628.    }
  629.    function get value()
  630.    {
  631.       return this.getVal();
  632.    }
  633. }
  634.